#define _CRT_SECURE_NO_WARNINGS 1
#include <string.h>
#include <stdio.h>
int main()
{
	char arr[] = "zhangsan@163.com";
	char arr2[30] = { 0 };
	strcpy(arr2, arr);
	const char*p = "@.";
	//char* s = strtok(arr2, p);
	//printf("%s\n", s);
	//s = strtok(NULL, p);
	//printf("%s\n", s);
	//s = strtok(NULL, p);
	//printf("%s\n", s);
	for (char*s = strtok(arr2, p); s != NULL; s = strtok(NULL, p))
	{
		printf("%s\n", s);
	}
	system("pause");
	return 0;
}